package org.zhaozhen.pet.service;


import org.zhaozhen.basic.service.IBaseService;
import org.zhaozhen.basic.util.PageList;
import org.zhaozhen.pet.domain.Pet;
import org.zhaozhen.pet.domain.SearchMasterMsg;
import org.zhaozhen.pet.query.SearchMasterMsgQuery;
import org.zhaozhen.user.domain.Logininfo;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    /**
     * 发布寻主
     * @param searchMasterMsg
     * @param currentLogin
     */
    void publish(SearchMasterMsg searchMasterMsg, Logininfo currentLogin);

    /**
     * 查询已处理
     * @param query
     * @param currentLogin
     * @return
     */
    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery query, Logininfo currentLogin);

    /**
     * 查询未处理
     * @param query
     * @param currentLogin
     * @return
     */
    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery query, Logininfo currentLogin);

    /**
     * 给主站查询用户自己的寻主消息
     * @param query
     * @param currentLogin
     * @return
     */
    PageList<SearchMasterMsg> queryUserMsg(SearchMasterMsgQuery query, Logininfo currentLogin);

    /**
     * 后端管理系统未处理宠物信息点击已处理
     * @param pet
     * @param currentLogin
     */
    void handle(Pet pet, Logininfo currentLogin);
}
